package net.mymilkedeek.ludum.tinythumb;

import org.newdawn.slick.util.Log;

/**
 * TODO: Write Documentation
 *
 * @author Michael Demey
 */
public class EventCollision extends Collision {
    public boolean active = true;
    public String name;

    public EventCollision(int x, int y, int[] array) {
        super(x, y, array);
        Log.debug("EVENT : " + x + " " + y);

        if ( x == 640 && y == 2304 || x == 672 && y == 2304 ) {
            //
            name = "event-one";
        } else if ( x == 320 && y == 1952 || x == 352 && y == 1952 ) {
            name = "gnome";
        } else if ( x == 864 && y == 1664 || x == 864 && y == 1696 || x == 864 && y == 1728) {
            name = "moon";
        } else {
            name = "end";
        }
    }

    @Override
    public boolean equals(Object obj) {
        return name.equals(((EventCollision)obj).name);
    }
}
